'use strict'

const Controller = require('egg').Controller

class CsrfController extends Controller {
  getCsrf() {
    const { app, ctx } = this
    ctx.body = {
      headers: ctx.request.headers,
    }
  }
  postCsrf() {
    const { app, ctx } = this

    ctx.body = {
      headers: ctx.request.headers,
    }
  }
}

module.exports = CsrfController
